From b475130e4ff21f3e629c43df59a284c7fb736431 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 Feb 2009 00:15:01 +0000 Subject: [PATCH] Copy the right string. Pointed out by Tommi Rantala * gtk/gtkiconview.c (gtk_icon_view_item_accessible_image_set_image_description): Copy the right string. Pointed out by Tommi Rantala svn path=/trunk/; revision=22417 --- ChangeLog | 9 +++++++++ gtk/gtkiconview.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0fa00c62a7..fae56cb78c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-02-27 Matthias Clasen + + Bug 572968 – GtkIconView: image_description setter function strdups + wrong string + + * gtk/gtkiconview.c + (gtk_icon_view_item_accessible_image_set_image_description): Copy + the right string. Pointed out by Tommi Rantala + 2009-02-27 David Zeuthen Bug 573416 – GtkMountOperation fixes for ask_password() diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index bd4663d964..78d24d7134 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -7603,7 +7603,7 @@ gtk_icon_view_item_accessible_image_set_image_description (AtkImage *image, item = GTK_ICON_VIEW_ITEM_ACCESSIBLE (image); g_free (item->image_description); - item->image_description = g_strdup (item->image_description); + item->image_description = g_strdup (description); return TRUE; } -- 2.30.2